﻿#include "testdemo.h"
#include <QFileSystemModel>
testDemo::testDemo(QWidget* parent)
    : QWidget(parent)
{
    ui.setupUi(this);
    QFileSystemModel* model = new QFileSystemModel(this);
    model->setRootPath(QDir::currentPath());
    ui.listView->setModel(model);
    ui.listView->setRootIndex(model->index(QDir::currentPath()));

    ui.tableView->setModel(model);
    ui.tableView->setRootIndex(model->index(QDir::currentPath()));

    ui.treeView->setModel(model);
    ui.treeView->setRootIndex(model->index(QDir::currentPath()));
}

testDemo::~testDemo() {}
